package com.system.controller;

import com.common.res.DataResult;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/api/v1")
public class TestController {

    @GetMapping("/test")
    @CrossOrigin
    public DataResult test(String userId){
        DataResult result = DataResult.success();
        result.setData("test");
        System.out.println("test");
        return result;
    }
}
